# -*- coding: utf-8 -*-
"""
@Time ： 2023/1/1 15:04
@Auth ： jiraWu
@File ：selenium无界面之handless.py
@IDE ：PyCharm
@Motto:人生苦短，我学Python

"""
# from selenium import webdriver
# from selenium.webdriver.chrome.options import Options
#
# chrome_options = Options()
# chrome_options.add_argument('‐‐headless')
# chrome_options.add_argument('‐‐disable‐gpu')
# path = r'C:\Program Files\Google\Chrome\Application\chrome.exe'
# chrome_options.binary_location = path
# browser = webdriver.Chrome(options=chrome_options)
#
# browser.get('http://www.baidu.com/')
# browser.save_screenshot('百度.png')
from jira_wu_dev_utils._handless import share_browser

browser = share_browser()
url = "https://www.baidu.com/"
browser.get(url)
browser.save_screenshot('百度.png')
